package com.ml.mall.bean.req.variant;

import com.ml.mall.bean.req.BaseBeanReq;
import com.ml.mall.bean.req.product.vo.ProductPicEditVO;
import com.ml.mall.bean.req.product.vo.ProductPicNewVO;
import com.ml.mall.bean.req.variant.vo.VariantEditSkuDataVO;
import com.ml.mall.bean.req.variant.vo.VariantNewSkuDataVO;
import com.ml.mall.bean.req.variant.vo.VariantRecommendVO;
import com.ml.mall.bean.vo.variant.SysProductVariantSalesVo;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created by kyyang on 2021/5/17 22:22
 */
@Data
public class VariantEditReq extends BaseBeanReq {

    private String keyword;  //增加 keyword

    @NotNull(message = "variantName is not null!")
    private String variantName;


    @NotNull(message = "price id null")
    private BigDecimal price;

    private BigDecimal commissionRate; //新增修改，可以在后台做运算

    @NotNull(message = "variantId is not null!")
    private Long variantId;

    private List<ProductPicEditVO> picUrlArr;

    private VariantNewSkuDataVO skuData;

    private VariantRecommendVO recommendObj;

    private String description;

    private SysProductVariantSalesVo sysProductVariantSales;

}
